package com.ant.storage.controller;


import com.ant.storage.common.ResultVo;
import com.ant.storage.pojo.StoragePayment;
import com.ant.storage.service.IStoragePaymentService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hzd
 * @since 2024-06-14
 */
@RestController
@RequestMapping("/storage-payment")
public class StoragePaymentController {

    @Autowired
    private IStoragePaymentService paymentService;


    @ApiOperation(value = "保存信息")
    @PostMapping("/contractSave")
    public ResultVo contractSave(@RequestBody StoragePayment dto) {
        return paymentService.paymentSave(dto);
    }

}
